<%@page import="pojo.Account"%>
<%@page import="pojo.Category"%>
<%@page import="pojo.Manufacturer"%>
<%@page import="pojo.Product"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>CM2 Fashion Shop Admin</title>
        <link rel="stylesheet" type="text/css" href="Style/Admin/style.css" />
        <link rel="stylesheet" type="text/css" media="all" href="Style/Admin/niceforms-default.css" />

        <script type="text/javascript" src="Script/Admin/jquery.min.js"></script>
        <script type="text/javascript" src="Script/Admin/ddaccordion.js"></script>
        <script type="text/javascript">
            ddaccordion.init({
                headerclass: "submenuheader", //Shared CSS class name of headers group
                contentclass: "submenu", //Shared CSS class name of contents group
                revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
                mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
                collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
                defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
                onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
                animatedefault: false, //Should contents open by default be animated into view?
                persiststate: true, //persist state of opened contents within browser session?
                toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
                togglehtml: ["suffix", "<img src='Style/Admin/images/plus.gif' class='statusicon' />", "<img src='Style/Admin/images/minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
                animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
                oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
                    //do nothing
                },
                onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
                    //do nothing
                }
            })
        </script>
        <script type="text/javascript" src="Script/Admin/jconfirmaction.jquery.js"></script>
        <script type="text/javascript" src="Script/Admin/niceforms.js"></script>
        <script type="text/javascript" src="Script/jquery-1.8.2.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){ 
            })
            function logout() {	
                window.location = "/quanly.htm?view=logout";
            }
	
        </script>
    </head>
    <body>
        <div id="main_container">

            <div class="header">
                <div class="logo"><a href="#"><img src="Style/Admin/images/logo.gif" alt="" title="" border="0" /></a></div>
                <%Account account = (Account) session.getAttribute("CURRENT_USER");%>
                <div class="right_header">Chào <%=account.getUsername()%> | <a href="#" class="logout" onclick="logout()">Logout</a></div>
                <div class="jclock"></div>
            </div>

            <div class="main_content">
                <div class="menu">
                    <ul>
                        <li><a href="">Trang Chủ</a></li>
                        <li><a href="">Quản Lý<!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <ul>
                                <li><a href="" title="">Quản Lý Đơn Hàng</a></li>
                                <li><a href="/quanly.htm?view=quanlysanpham" title="">Quản Lý Sản Phẩm</a></li>
                                <li><a href="" title="">Quản Lý Loại Sản Phẩm</a></li>
                                <li><a href="" title="">Quản Lý Nhà Sản Xuất</a></li>
                                <li><a href="" title="">Quản Lý Tài Khoản</a></li>
                                <li><a href="" title="">Quản Lý Bình Luận</a></li>
                                <li><a href="" title="">Quản Lý Quảng Cáo</a></li>
                            </ul>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                        <li><a href="#">Thêm Mới<!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <ul>
                                <li><a href="/quanly.htm?view=themsanpham" title="">Thêm Sản Phẩm</a></li>
                                <li><a href="" title="">Thêm Loại Sản Phẩm</a></li>
                                <li><a href="" title="">Thêm Nhà Sản Xuất</a></li>                                
                                <li><a href="" title="">Thêm Tài Khoản</a></li>
                            </ul>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                        <li><a href="#">Báo Cáo - Thống Kê<!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <ul>
                                <li><a class="sub1" href="" title="">Sản Phẩm<!--[if IE 7]><!--></a><!--<![endif]-->
                                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                                    <ul>
                                        <li><a href="" title="">Mới Nhất</a></li>
                                        <li><a href="" title="">Bán Chạy Nhất</a></li>
                                    </ul>
                                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                                </li>
                                <li><a class="sub1" href="" title="">Doanh Thu<!--[if IE 7]><!--></a><!--<![endif]-->
                                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                                    <ul>
                                        <li><a href="" title="">Theo Sản Phẩm</a></li>                               
                                        <li><a href="" title="">Theo Người Dùng</a></li>                           
                                        <li><a href="" title="">Theo Tuổi Người Dùng</a></li>
                                    </ul>
                                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                                </li>
                            </ul>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                        <li><a href="#">Thùng Rác<!--[if IE 7]><!--></a><!--<![endif]-->
                            <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <ul>
                                <li><a href="" title="">Đơn Hàng</a></li>
                                <li><a href="" title="">Sản Phẩm</a></li>
                                <li><a href="" title="">Loại Sản Phẩm</a></li>
                                <li><a href="" title="">Nhà Sản Xuất</a></li>
                                <li><a href="" title="">Tài Khoản</a></li>
                                <li><a href="" title="">Bình Luận</a></li>
                                <li><a href="" title="">Quảng Cáo</a></li>
                            </ul>
                            <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                        <li><a href="">Cài Đặt Tài Khoản</a></li>
                    </ul>
                </div> 
                <div class="center_content">                      
                    <div class="right_content"> 
                        <c:import url="${CONTENT_PAGE}"/>
                    </div><!-- end of right content-->
                </div>   <!--end of center content -->  
                <div class="clear"></div>
            </div> <!--end of main content-->

            <div class="footer">
                <div class="left_footer">IN ADMIN PANEL | Powered by <a href="http://indeziner.com">INDEZINER</a></div>
                <div class="right_footer"><a href="http://indeziner.com"><img src="Style/Admin/images/indeziner_logo.gif" alt="" title="" border="0" /></a></div>
            </div>
        </div>		
    </body>
</html>